/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package aiaudio.database.qualifiers;

import org.apache.hadoop.hbase.util.Bytes;

/**
 *
 * @author nastya
 */
public abstract class Qualifier<ClassName> {
    
    private String name;
    private Class type;

    public Qualifier(String name, Class type) {
        this.name = name;
        this.type = type;
    }

    
    public byte[] getNameAsBytes() {
        return Bytes.toBytes(name);
    }

    public String getName() {
        return name;
    }

    public Class getType() {
        return type;
    }    
    
    public abstract ClassName parse(byte[] value); 
}
